This is my try of completing the a code test