initial solution for 1st challenge