Skeleton pattern implement in ooerlang