added my solution for solo challenge
added functions for tests