solution for 1st challenge