Adds post class instanciation from file