Putted platform into separate class