started implementing my code