Implemented first implementation of push method