modified euler2 and added solution for euler3