Added separate method for greeting and time