Implement first problem