Implement List.hs exercises