Now became compilable and working code