added solution for first numbers problem