Implement solution for written specs