My improved solutions for the technical test