solved the assignment