Implemented factory for all four classes of robots.