solutions for first assigment