Implementations

Added my implementations to the function stubs provided.