Anapproach for reverse engineering of designpatterns