Skeleton and basic implementation of engine