altitude function complete
writing tests